﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LinqToLfsWorld
{

	/// <summary>
	/// Descrives various rule options that have been enforced on a host
	/// </summary>
	[Flags]
	[Serializable]
	public enum RuleFlags : int
	{
		/// <summary>
		/// Voting has been enabled
		/// </summary>
		VotingEnabled = 1,

		/// <summary>
		/// Public track selection is enabled
		/// </summary>
		SelectEnabled = 2,

		/// <summary>
		/// Qualifying is enabled
		/// </summary>
		Qualify = 4,

		/// <summary>
		/// The host is private
		/// </summary>
		Private = 8,

		/// <summary>
		/// 
		/// </summary>
		Modified = 16,

		/// <summary>
		/// Racer's can join a race which is currently in progress
		/// </summary>
		MidRaceJoinEnabled = 32,

		/// <summary>
		/// A racer must pit during the course of the race
		/// </summary>
		MustPit = 64,

		/// <summary>
		/// Car reset is enabled
		/// </summary>
		ResetEnabled = 128,

		/// <summary>
		/// Racers are forced to use the cockpit view
		/// </summary>
		ForcedCockpitView = 256,

		/// <summary>
		/// This host is a cruise server (driving the wrong way allowed)
		/// </summary>
		Cruise = 512
	}
}
